libxl: check HVM direct boot parameters
authorWei Liu <wei.liu2@citrix.com>
Mon, 19 Jan 2015 16:13:59 +0000 (16:13 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 19 Jan 2015 17:21:27 +0000 (17:21 +0000)
commit0e560dfc48e7df189742525dd12a1ef691188a3b
treeb8487fbfa17b49b5b8d6c3cfa43413190a02fd65
parentbe03989599dcaa75c781e9955b7663f0097a6f60
libxl: check HVM direct boot parameters

We should honour -initrd and -append iff -kernel is specified, because
that's how QEMU works.

Check direct boot parameters in libxl__domain_build_info_setdefault.
Return failure if kernel is missing while ramdisk (-initrd) and / or
cmdline (-append) is present.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Chunyan Liu <cyliu@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_create.c